package com.elasticsearch.wenzi.elastic.response;

import com.elasticsearch.wenzi.elastic.result.ProductEsResult;
import lombok.Data;

import java.util.List;

@Data
public class SearchResponse {

	//search服务中的数据
	private List<ProductEsResult> productEsVoList;

	/**
	 * 分页信息
	 */
	private Integer pageNnmber;//当前页码

	private Long total;//总记录数


	private Integer totalPages;//总页码

	//品牌
	private List<BrandVo> brandVoList;
	//功效
	private List<ResponseEffect> responseEffectList;

	@Data
	public static class  BrandVo{
		//品牌ID
		private Long brandId;
		//品牌名称
		private  String  brandName;
	}

	@Data
	public static  class  ResponseEffect{
		//功效ID
		private Long productEffectId;
		//功效名称
		private  String productEffectName;
	}

}